﻿#ifndef PERFORMER_H
#define PERFORMER_H

#include "Shape.h"
#include "Paint.h"
#include <QString>
#include <QDebug>
#include "Position.h"

class Performer
{
public:
    Performer(const QString &name, const VPoint &site, const Shape &shape);
    virtual ~Performer();

    const VPoint & getSite() const;
    /*
     * 获取此对象的坐标
     */

    const Shape & getShape() const;
    /*
     * 获取此对象的图形数据
     */

    const Paint & getPaint() const;
    /*
     * 获取画图接口
     */

    const QString & getType() const;

protected:
    QString *_type;//类型
    QString *_nickname;//名字
    VPoint  *_site;//此对象的中心在画布上（Qt默认坐标系）的坐标
    Shape *_shape;//图形数据
    Paint *_paint;//画图接口
    Performer *_performer;//指向的perf,例如single指向multiple
};

#endif // PERFORMER_H
